Skip to content

fix(@schematics/angular): correctly detect modules using new file extension format #30471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

alan-agius4
Copy link
Collaborator

Previously, some internal methods failed to locate modules when using the -module.ts filename pattern instead of the legacy .module.ts. This update ensures proper detection with the new format.

@alan-agius4 alan-agius4 requested a review from clydin June 5, 2025 14:04
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jun 5, 2025
…ension format

Previously, some internal methods failed to locate modules when using the `-module.ts` filename pattern instead of the legacy `.module.ts`. This update ensures proper detection with the new format.
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 5, 2025
@alan-agius4 alan-agius4 merged commit 0b7d48c into angular:main Jun 5, 2025
54 of 55 checks passed
@alan-agius4 alan-agius4 deleted the module-ext-search branch June 5, 2025 14:38
@alan-agius4
Copy link
Collaborator Author

The changes were merged into the following branches: main, 20.0.x

devversion added a commit to devversion/material2 that referenced this pull request Jun 5, 2025
Angular CLI generates `-module.ts` suffix when using `--standalone:
false`. Our schematic tests generate the same, and fail currently
because some files weren't picked up properly by the rule.

This commit fixes this, and adds supports for the new suffix in a naive
way until angular/angular-cli#30471 is
available.
devversion added a commit to devversion/material2 that referenced this pull request Jun 5, 2025
Angular CLI generates `-module.ts` suffix when using `--standalone:
false`. Our schematic tests generate the same, and fail currently
because some files weren't picked up properly by the rule.

This commit fixes this, and adds supports for the new suffix in a naive
way until angular/angular-cli#30471 is
available.
devversion added a commit to angular/components that referenced this pull request Jun 5, 2025
Angular CLI generates `-module.ts` suffix when using `--standalone:
false`. Our schematic tests generate the same, and fail currently
because some files weren't picked up properly by the rule.

This commit fixes this, and adds supports for the new suffix in a naive
way until angular/angular-cli#30471 is
available.
devversion added a commit to angular/components that referenced this pull request Jun 5, 2025
Angular CLI generates `-module.ts` suffix when using `--standalone:
false`. Our schematic tests generate the same, and fail currently
because some files weren't picked up properly by the rule.

This commit fixes this, and adds supports for the new suffix in a naive
way until angular/angular-cli#30471 is
available.

(cherry picked from commit 394336c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @schematics/angular target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants